from django.db import models
from fund_registration.models import Customer

class PersonalAssessment(models.Model):
    customer = models.OneToOneField(Customer)
    
    age = models.PositiveSmallIntegerField()
    edu = models.PositiveSmallIntegerField()
    work = models.PositiveSmallIntegerField()
    position = models.PositiveSmallIntegerField()
    duration = models.PositiveSmallIntegerField()
    house = models.PositiveSmallIntegerField()
    income = models.PositiveSmallIntegerField()
    fincome = models.PositiveSmallIntegerField()
    depend = models.PositiveSmallIntegerField()
    
    total = models.PositiveSmallIntegerField()

class BankAssessment(models.Model):
    customer = models.OneToOneField(Customer)
    
    debt = models.PositiveSmallIntegerField()
    interest = models.PositiveSmallIntegerField()
    total_debt = models.PositiveSmallIntegerField()
    collateral = models.PositiveSmallIntegerField()
    relation = models.PositiveSmallIntegerField()
    saving = models.PositiveSmallIntegerField()
    
    total = models.PositiveSmallIntegerField()
